package design.graduation.novelsystem.service;

import design.graduation.novelsystem.model.domian.IncludeBook;
import com.baomidou.mybatisplus.extension.service.IService;
import design.graduation.novelsystem.model.dto.DataGridView;
import design.graduation.novelsystem.model.vo.IncludeBookVo;

/**
 * @author: 洪少尉
 * @Date: 2020/4/18 09:19
 * @Description:
 */
public interface IncludeBookService extends IService<IncludeBook> {

	/**
	 * 全查询 +条件查询
	 * 用于回写表单数据
	 *
	 * @param includeBookVo 查询条件
	 * @return DataGridView
	 */
	DataGridView queryAllIncludeBook(IncludeBookVo includeBookVo);

	/**
	 * 修改上下架状态
	 * @param includeBook id和status
	 * @return boolean
	 */
	boolean updateStatus(IncludeBook includeBook);

	/**
	 * 批量上架
	 * @param id 上架小说id
	 */
	void batchUp(Integer id);
	/**
	 * 批量下架
	 * @param id 下架小说id
	 */
	void batchDown(Integer id);
}


